package com.ykht.proj.coupon.Enum;

public enum CouponTypeEnum {

	//'0通用券1多门店2单门店'
	not(0,"无门槛券"),
	full(1,"满减券");


	private Integer value;
	private String desc;

	private CouponTypeEnum(Integer value, String desc) {
		this.value = value;
		this.desc = desc;
	}


	/**
	 * 根据val值获取desc
	 * @param val 1、0
	 * @return
	 */
	public static String getDescByVal(Integer val) {
		DelFlagEnum[] values = DelFlagEnum.values();
		for (DelFlagEnum oe : values) {
			if (oe.getValue().equals(val)) {
				return oe.getDesc();
			}
		}
		return null;
	}

	public Integer getValue() {
		return value;
	}

	public void setValue(Integer value) {
		this.value = value;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}
}
